const { baseName } = require('../../base.config')
import { BaseAxios } from '@/utils'

/* 用户查询所有已配置的视图  */
export const getConfiguredViews = async params => BaseAxios.post(`${baseName}/home/getConfiguredViews`, params)
/* 用户删除已配置的视图 */
export const deleteConfiguredViews = async params => BaseAxios.post(`${baseName}/home/deleteConfiguredViews?viewId=${params}`)
/* 用户新建视图 */
export const createViews = async params => BaseAxios.post(`${baseName}/home/createViews`, params)
/* 用户查询账户下所关联的视图中的详细信息 */
export const getConfiguredViewsDetailInfo = async params => BaseAxios.post(`${baseName}/home/getConfiguredViewsDetailInfo`, params)